package com.lanou3g.hw0408;

/**
 * Created by dllo on 18/4/8.
 */
public class Car {
    private String name;
    private String category;//类别
    private int length;

    public Car() {
    }

    public Car(String name, String category, int length) {
        this.name = name;
        this.category = category;
        this.length = length;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public void attribute() {
        System.out.println("这个叫:" + name + "的" + category + "的长度是" + length + "米");
    }
}
